package com.example.sqliteframe;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MySqlite extends SQLiteOpenHelper {
    private final static String dbName = "test_sql";
    public static String sql;

    public MySqlite(Context context ,String _sql) {
        super(context, dbName, null, 1);
        this.sql=_sql;
    }
    public MySqlite(Context context) {
        super(context, dbName, null, 1);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
       db.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
